import request from '@/utils/request'

// 查询活动地址列表
export function listActivityAddress(query) {
  return request({
    url: '/activityAddress/activityAddress/list',
    method: 'get',
    params: query
  })
}

// 查询活动地址详细
export function getActivityAddress(id) {
  return request({
    url: '/activityAddress/activityAddress/' + id,
    method: 'get'
  })
}

// 新增活动地址
export function addActivityAddress(data) {
  return request({
    url: '/activityAddress/activityAddress',
    method: 'post',
    data: data
  })
}

// 修改活动地址
export function updateActivityAddress(data) {
  return request({
    url: '/activityAddress/activityAddress',
    method: 'put',
    data: data
  })
}

// 删除活动地址
export function delActivityAddress(id) {
  return request({
    url: '/activityAddress/activityAddress/' + id,
    method: 'delete'
  })
}
